/*
 * Created by LiuYou on 2020/12/8.
 *
 */

#ifndef DESIGNPATTERN_SALESORDER_HPP
#define DESIGNPATTERN_SALESORDER_HPP


#include "Tax.hpp"

namespace SalesOrder {
    class SalesOrder {
    public:
        explicit SalesOrder(Tax tax);

/*        double calculateTax(Tax tax) {
            // ...
            double value;

            if (tax == Tax::CN_TAX) {
                // CN**********
            }

            return value;
        }*/

        double calculateTax();


    private:
        Tax tax;

    };

}


#endif //DESIGNPATTERN_SALESORDER_HPP
